package jianzhi_offer;

public class _14_反转链表 {
	public ListNode ReverseList(ListNode head) {
		if(head == null) return null;
		ListNode fake = new ListNode(-1);
		while(head != null) {
			ListNode now = head;
			head = head.next;
			now.next= fake.next;
			fake.next = now;
		}
		return fake.next;
    }
}
